package br.com.excecoes;

public class A {

	private void imprimir() {
		System.out.println("Dentro de A");
	}
	
	
	public static void main(String[] args) {
		A[] array = {new B(),new A()};
		
		for (int i=0;i<array.length;i++){
			array[i].imprimir();
		}

	}
	
}
